Configuring sudo on FreeBSD 8.1 and allowing sudo to open GUI applications
The goal is to install sudo and configure it in a way that allows GUI apps to run.
Without proper configuration the following error occurs when trying to run GUI apps:
No protocol specified
No protocol specified
Error: cannot open display: :0.0
No protocol specified
Error: cannot open display: :0.0
To cofigure sudo, follow these steps below.
- Install sudo.
cd /usr/ports/security/sudo
make install - Configure sudo be editing the /usr/local/etc/sudoers file.
ee /usr/local/etc/sudoers
- Make the following configuration changes. The first ones make sudo work with GUI apps.
Defaults env_keep += “HOME”
Defaults env_keep += “XAPPLRESDIR XFILESEARCHPATH XUSERFILESEARCHPATH”
Defaults env_keep += “QTDIR KDEDIR”
Defaults env_keep += “XDG_SESSION_COOKIE”
root ALL=(ALL) ALL
%wheel ALL=(ALL) ALL
[...] the module. This must be done as root. If you have sudo installed, use it, otherwise install it (Configuring sudo on FreeBSD) or su to [...]
[...] original here: Rhyous » Blog Archive » Configuring sudo on FreeBSD 8.1 and … This entry was posted in Uncategorized and tagged allowing-sudo, gui, install-sudo, [...]